﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Inbox_Add.aspx.cs" Inherits="TimKen.Web.Admin.Inbox.Inbox_Add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
    <span class="action-span"><a href="Inbox_List.aspx">
        <%=GetLangString("MenuInbox")%>
    </a></span>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
    <%=GetLangString("MenuInboxAdd")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">

    <script type="text/javascript">
        function checkForm() {

            if (!document.getElementById("<%=txtToID.ClientID%>").readOnly && document.getElementById("<%=txtToID.ClientID%>").value == "") {
                alert(x_MessageToIDNotAllowBlank);
                return false;
            }
            if (document.getElementById("<%=txtTitle.ClientID%>").value == "") {
                alert(x_MessageTitleNotAllowBlank);
                return false;
            }
            return true;
        }
    </script>

    <div class="main-div">
        <table>
            <tr>
                <th class="label">
                    <%=GetLangString("MessageTo")%>：
                </th>
                <td>
                    <asp:TextBox ID="txtToID" runat="server" Width="95%"></asp:TextBox><br />
                    <span style="color: Red">发送给多人，使用","分隔</span><asp:CheckBox ID="chkToAll" runat="server"
                        AutoPostBack="true" OnCheckedChanged="chkToAll_CheckedChanged" />
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("MessageTitle")%>：
                </th>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("MessageContent")%>：
                </th>
                <td>
                    <asp:TextBox ID="txtMessage" TextMode="MultiLine" runat="server" Width="95%" Height="300px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                </th>
                <td class="buttontd" colspan="2">
                    <asp:Button Text="" runat="server" CssClass="button" ID="btnSubmit" OnClientClick="return checkForm(); "
                        OnClick="btnSubmit_Click" />&nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
